<?php

class m140311_195701_create_team_table extends CDbMigration
{
    public function up()
    {
        $this->createTable('tbl_team', array(
            'id' => 'pk',
            'name' => 'string NOT NULL',
            'gender' => 'string NOT NULL',
            'age' => 'string NOT NULL',
            'class' => 'string NOT NULL',
        ));
    }
 
    public function down()
    {
        $this->dropTable('tbl_team');
    }
    
    /*
    // Use safeUp/safeDown to do migration with transaction
    public function safeUp()
    {
    }

    public function safeDown()
    {
    }
    */
}
